﻿//-----------------------------------------------------------------------
// <copyright company="Microsoft Corporation">
//     Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Microsoft.DevDiv.Wpf.Samples
{
    public class LiveSearchError
    {
        public string Message
        {
            get
            {
                return this.message =
                    this.message ?? this.inner.GetValue("./api:Message");
            }
        }

        internal static LiveSearchError Create(LiveSearchXmlObject inner)
        {
            return new LiveSearchError()
            {
                inner = inner
            };
        }

        private string message;
        private LiveSearchXmlObject inner;
    }
}